<?php
define('ABSPATH', dirname(__FILE__).DIRECTORY_SEPARATOR);

require_once (ABSPATH.'consts.inc.php');

// Security fix. (don't trust $_SERVER['PHP_SELF']
if(PHP_SAPI != 'cli')
{
	$_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'];
}


date_default_timezone_set("Europe/London");

// Db parameters
$conn = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
$db = mysql_select_db(MYSQL_DB);

mysql_query('SET NAMES \'utf8\'');
?>